// component/footer/footer.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    sumPrice: {
      type: String,
      value: ''
    },
    text: {
      type: String,
      value: ''
    },
    className: {
      type: String,
      value: ''
    },
    showBtn: {
      type: Boolean,
      value: false
    },
    hiddenLeft:{
      type: Boolean,
      value: false
    },
    disabled: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    /**
     * 跳转收费标准
     */
    handleClick() {
      wx.navigateTo({
        url: '/pages/standardCharge/standardCharge',
      })
    },
    /**
     * 提交
     */
    handleSubmit() {
      if(this.data.disabled) return
      this.triggerEvent('callOnSubmit', {})
    },
    /**
     * 获取用户信息
     */
    get_user_info(e) {
      if (this.disabled) {
        return
      }
      this.triggerEvent('callOnGetUserInfo', {e})
    },
  }
})
